package com.mjh.zhujianju.service.party.impl;

import com.livew.framework.base.service.impl.BaseServiceImpl;
import com.mjh.zhujianju.dao.party.BuildingClassUsersDetailsMapper;
import com.mjh.zhujianju.model.party.BuildingClassUsersDetailsEO;
import com.mjh.zhujianju.service.party.BuildingClassUsersDeatilsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author liuyang
 * @Description:
 * @date 2018/9/5 21:48
 */
@Service
public class BuildingClassUsersDeatilsServiceImpl extends BaseServiceImpl<BuildingClassUsersDetailsEO> implements BuildingClassUsersDeatilsService {
    @Autowired
    private BuildingClassUsersDetailsMapper buildingClassUsersDetailsMapper;


    public BuildingClassUsersDeatilsServiceImpl(BuildingClassUsersDetailsMapper buildingClassUsersDetailsMapper) {
        super(buildingClassUsersDetailsMapper);
    }

    @Override
    public void insertByBatch(List<BuildingClassUsersDetailsEO> list) {
        buildingClassUsersDetailsMapper.insertByBatch(list);
    }

    @Override
    public List<BuildingClassUsersDetailsEO> findBuildingClassUsersEOByUserId(Long classUsersId) {
        BuildingClassUsersDetailsEO eo = new BuildingClassUsersDetailsEO();
        eo.setClassUsersId(classUsersId);
        return buildingClassUsersDetailsMapper.selectListByCondition(eo);
    }

    @Override
    public void updateBuildingClassUsersDetailsByClassUsersId(Long classUsersId) {
        buildingClassUsersDetailsMapper.updateBuildingClassUsersDetailsByClassUsersId(classUsersId);
    }
}
